package com.ming;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;


/**
 * @Author:何元才
 * @Desc:
 * @data:2021-04-07 11:56
 */
@SpringBootApplication
@EnableEurekaClient
public class MessageServiceAPP {

    public static void main(String[] args) {
        SpringApplication.run(MessageServiceAPP.class,args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
